package com.wanbangee.marksystem.service;

import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="kaoJinBang-examination-setting-provider")
public interface SettingClientService {
	/**
	 * 根据班级ID查询此班级的所有考试
	 * @param claId
	 * @return
	 */
	@GetMapping("/examList/selectExamByClaId")
	public Map<String, Object> selectExamByClaId(@RequestParam(value="claId") Integer claId);
	
	/**教师讲卷-成绩与答案
	 * 
	 * 查询学生对应的试卷url
	 * @param examId
	 * @param stuId
	 * @param subId
	 * @return
	 */
	@GetMapping("/scoreAndAnswerSheet/selectStuExamaSheetUrl")
	public Map<String, Object> selectStuExamaSheetUrl(@RequestParam(value="examId")Integer examId,@RequestParam(value="stuId")Integer stuId,@RequestParam(value="subId")Integer subId);
	
	
	/**
	 * 查询高分作文功能:根据当前登录人schId查询所有的考试，且考试包含语文及英语科目
	 * @param claId
	 * @return
	 */
	@GetMapping("/examList/selectExamBySchId")
	public Map<String, Object> selectExamBySchId(@RequestParam(value="schId") Integer schId);
	
	/**
	 * 根据所选择的考试查询考试科目为语文和英语的考试
	 * @param subId
	 * @param examId
	 * @return
	 */
	@GetMapping("/topScoreComposition/selectMSubjectByExamId")
	public Map<String, Object> selectMSubjectByExamId(@RequestParam(value="examId")Integer examId);
}
